<cp-navbar (onClickLeft)="onClickLeft()"></cp-navbar>
<div class="loading" *ngIf="loading"><cp-loading></cp-loading></div>
<div class="container" *ngIf="!loading">
    <div class="header">
        <p>关于 <span class="name">{{projectName}}</span>的问题</p>
    </div>
    <div class="content">
        <div class="question border-bottom">
            <div class="q"><span class="label">问</span> <span class="value">{{this.details.Content}}</span></div>
            <div class="timebox">
                <span class="username" *ngIf="this.details.Anonymous">{{this.details.Nick.Nick}}</span>
                <span class="username" *ngIf="!this.details.Anonymous">匿名用户</span>
                <span class="time">{{this.details.DateTime}}</span>
            </div>
        </div>
        <div class="list" *ngIf="this.details.Answers.length!=0">
            <div class="item" *ngFor="let item of this.details.Answers">
                <div class="avatarbox">
                    <img src="assets/images/temp/profile_photo.png" class="avatar" />
                    <!-- <span class="username">匿名用户0364</span> -->
                    <span class="username" *ngIf="item.Anonymous">{{item.Nick.Nick}}</span>
                    <span class="username" *ngIf="!item.Anonymous">匿名用户</span>
                </div>
                <p class="txt">
                    {{item.Content}}
                </p>
                <p class="time">
                    {{item.DateTime}}
                </p>
            </div>
        </div>
        <div *ngIf="this.details.Answers.length===0" class="empty">
            <cp-empty></cp-empty>
        </div>

    </div>
    <!-- <div class="fill"></div>
    <div class="fixed-bottom">
        <button class="btn btn-q">
            <img src="assets/images/HouseDetails/icon_question_detail.png" /> <span>我要提问</span>
        </button>
        <button class="btn btn-a"><img src="assets/images/HouseDetails/icon_anwser.png" /> <span>我要提问</span></button>
    </div> -->
</div>